/* product-list.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
}

header h1 {
    margin: 0;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}

header nav a:hover {
    background-color: #555;
}

.product-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product-list li {
    border: 1px solid #ddd;
    margin: 10px;
    padding: 20px;
    width: calc(25% - 40px);
    text-align: center;
    background-color: white;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-list li:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-list li img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-list li h3 {
    color: #333;
    font-size: 1.2em;
    margin: 10px 0;
}

.product-list li p {
    color: #666;
    font-size: 1em;
    margin: 5px 0;
}

.add-to-cart {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #0056b3;
}

.back-to-home {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #fff;
    background-color: #007bff;
    padding: 10px;
    text-decoration: none;
}